package com.lemon.exam.entity.po;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 班级-用户中间表 持久层对象
 *
 * @author Lemon
 * @since 2025/04/20 22:06:24
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@Table(value = "biz_class_user")
@Schema(name = "班级-用户中间表")
public class ClassUserPO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Id
    @Schema(description = "班级-用户中间表")
    @Column(value = "id")
    private Long id;

    @Schema(description = "班级ID")
    @Column(value = "class_id")
    private Long classId;

    @Schema(description = "用户ID")
    @Column(value = "user_id")
    private Long userId;

    @Schema(description = "用户在班级中的职位")
    @Column(value = "job_id")
    private Long jobId;

}
